<!DOCTYPE html>
<!--[if IEMobile 7 ]><html class="no-js iem7"><![endif]-->
<!--[if lt IE 9]><html class="no-js lte-ie8"><![endif]-->
<!--[if (gt IE 8)|(gt IEMobile 7)|!(IEMobile)|!(IE)]><!--><html class="no-js" lang="en"><!--<![endif]-->
<head>
  <meta charset="utf-8">
  <title>cat writebug.cn/history</title>
  <meta name="author" content="zhiliao">
  <meta name="description" content="writebug博客网，一个开发者的技术博客。" />

  <meta name="keywords" content="开发者,程序,博客园,程序猿,程序媛,极客,码农,编程,代码,软件开发,开源,IT网站,技术社区,Developer,Programmer,Coder,Geek,Coding,Code,writebug,bug,写bug,linux,vim,编程语言,调试" />

  <link href="/feeds/all.atom.xml" type="application/rss+xml" rel="alternate"
        title="cat writebug.cn/history RSS Feed" />



  <!-- http://t.co/dKP3o1e -->
  <meta name="HandheldFriendly" content="True">
  <meta name="MobileOptimized" content="320">
  <meta name="viewport" content="width=device-width, initial-scale=1">


    <link href="/favicon.png" rel="icon">

  <link href="/theme/css/main.css" media="screen, projection"
        rel="stylesheet" type="text/css">
  <link href="/theme/css/pygment.css" rel="stylesheet" type="text/css">

  <!--
  <link href="//fonts.googleapis.com/css?family=PT+Serif:regular,italic,bold,bolditalic"
        rel="stylesheet" type="text/css">
  <link href="//fonts.googleapis.com/css?family=PT+Sans:regular,italic,bold,bolditalic"
        rel="stylesheet" type="text/css">
  -->


  <script src="/theme/js/modernizr-2.0.js"></script>
  <script src="/theme/js/ender.js"></script>
  <script src="/theme/js/octopress.js" type="text/javascript"></script>
</head>

<body >
  <header role="banner"
  >
<hgroup>
  <h1><a href="/">cat writebug.cn/history</a></h1>
    <h2>一个开发者的技术博客。</h2>
</hgroup></header>
  <nav role="navigation"><ul class="subscription" data-subscription="rss">
  <li><a href="/feeds/all.atom.xml" rel="subscribe-rss">RSS</a></li>
</ul>


<ul class="main-navigation">
    <li><a href="/">Home</a></li>
    <li><a href="/archives.html">Archive</a></li>
    <li><a href="/pages/todolist.html">TodoList</a></li>
    <li><a href="/pages/about.html">About</a></li>
</ul></nav>
  <div id="main">
    <div id="content">
<div class="blog-index">
  		<article>
<header>
      <h1 class="entry-title">
        <a href="/posts/2015/01/01/install-archlinux.html">ArchLinux 安装笔记</a>
      </h1>
    <p class="meta">
<time datetime="2015-01-01T20:31:00+08:00" pubdate>2015-01-01 20:31:00</time>      
    </p>
</header>

        <div class="entry-content"><h3>ArchLinux 安装笔记</h3>
<ol>
<li>制作usb启动盘</li>
<li>为要安装系统的磁盘分区， 一般需要 / /boot /home swap， 服务器的/srv /var 是可选的。也可以考虑使用lvm或者btrfs …</li></ol></div>
            <footer>
                <a rel="full-article" href="/posts/2015/01/01/install-archlinux.html">Read On &crarr;</a>
            </footer>
  		</article>
  		<article>
<header>
      <h1 class="entry-title">
        <a href="/posts/2015/01/01/cpp-books.html">C++书籍推荐</a>
      </h1>
    <p class="meta">
<time datetime="2015-01-01T00:00:00+08:00" pubdate>2015-01-01 00:00:00</time>      
    </p>
</header>

        <div class="entry-content"><ul>
<li>C++Primer 5th 中文版 (no Plus)</li>
<li>Inside C++ Object Model</li>
<li>The Design and Evolution of C++</li>
</ul>
<p>这三本就够用了，可以应付绝大多数的工作</p>
<hr>
<p>下面是转载的在博客上看到的一 …</p></div>
            <footer>
                <a rel="full-article" href="/posts/2015/01/01/cpp-books.html">Read On &crarr;</a>
            </footer>
  		</article>
  		<article>
<header>
      <h1 class="entry-title">
        <a href="/posts/2014/09/26/bash.html">bash</a>
      </h1>
    <p class="meta">
<time datetime="2014-09-26T21:55:00+08:00" pubdate>2014-09-26 21:55:00</time>      
    </p>
</header>

        <div class="entry-content"><h4>Linux 下shell基本上默认是 bash, 下面是我总结的一些技巧。</h4>
<h4>bash 重定向</h4>
<div class="highlight-custom"><pre><span></span><code>find<span class="w"> </span>/etc<span class="w"> </span>-name<span class="w"> </span>passwd<span class="w">  </span><span class="m">1</span>&gt;<span class="w"> </span><span class="m">1</span>.txt<span class="w"> </span><span class="c1"># 把标准输出重定向到 1.txt，屏幕上只显示错 …</span></code></pre></div></div>
            <footer>
                <a rel="full-article" href="/posts/2014/09/26/bash.html">Read On &crarr;</a>
            </footer>
  		</article>
  		<article>
<header>
      <h1 class="entry-title">
        <a href="/posts/2014/08/15/linux-kernel.html">关于Linux内核学习</a>
      </h1>
    <p class="meta">
<time datetime="2014-08-15T00:00:00+08:00" pubdate>2014-08-15 00:00:00</time>      
    </p>
</header>

        <div class="entry-content"><div class="highlight-custom"><pre><span></span><code><span class="mf">1.</span><span class="w"> </span><span class="n">请推荐一些好的Linux内核参考书</span><span class="err">？</span><span class="w"> </span>
<span class="n">a</span><span class="mf">.</span><span class="err">《</span><span class="n">Linux</span><span class="w"> </span><span class="n">Device</span><span class="w"> </span><span class="n">Drivers</span><span class="p">,</span><span class="w"> </span><span class="n">Second</span><span class="w"> </span><span class="n">Edition</span><span class="err">》，</span><span class="n">有中文译本</span><span class="w"> </span>
<span class="n">b</span><span class="mf">.</span><span class="err">《</span><span class="n">Understanding</span><span class="w"> </span><span class="n">the</span><span class="w"> </span><span class="n">Linux</span><span class="w"> </span><span class="n">Kernel</span><span class="p">,</span><span class="w"> </span><span class="mf">2</span><span class="n">nd</span><span class="w"> </span><span class="n">Edition</span><span class="err">》</span><span class="w"> </span>
<span class="n">c</span><span class="mf">.</span><span class="err">《</span><span class="n">Linux内核源代码情景分析</span><span class="err">》，</span><span class="n">分上下两册</span><span class="w"> </span>
<span class="n">d …</span></code></pre></div></div>
            <footer>
                <a rel="full-article" href="/posts/2014/08/15/linux-kernel.html">Read On &crarr;</a>
            </footer>
  		</article>
  		<article>
<header>
      <h1 class="entry-title">
        <a href="/posts/2014/08/06/programming-C.html">C语言深度解剖</a>
      </h1>
    <p class="meta">
<time datetime="2014-08-06T00:00:00+08:00" pubdate>2014-08-06 00:00:00</time>      
    </p>
</header>

        <div class="entry-content"><p>register 变量必须是一个单个的值，并且其长度应小于或等于整型的长度。 而且 register 变量可能不存放在内存中，所以不能用取址运 …</p></div>
            <footer>
                <a rel="full-article" href="/posts/2014/08/06/programming-C.html">Read On &crarr;</a>
            </footer>
  		</article>
  		<article>
<header>
      <h1 class="entry-title">
        <a href="/posts/2014/06/23/apue-note.html">apue读书笔记</a>
      </h1>
    <p class="meta">
<time datetime="2014-06-23T00:00:00+08:00" pubdate>2014-06-23 00:00:00</time>      
    </p>
</header>

        <div class="entry-content"><div class="highlight-custom"><pre><span></span><code>打印出错信息：
Strerror  perror
一个unix惯例是把argv[0]作为参数传递给perror
好处是当用管道连接多个程序时，能分清错误是哪一个产生 …</code></pre></div></div>
            <footer>
                <a rel="full-article" href="/posts/2014/06/23/apue-note.html">Read On &crarr;</a>
            </footer>
  		</article>
  		<article>
<header>
      <h1 class="entry-title">
        <a href="/posts/2014/06/11/chmod777.html">linux错误执行chmod 777 / 的处理方法</a>
      </h1>
    <p class="meta">
<time datetime="2014-06-11T20:50:00+08:00" pubdate>2014-06-11 20:50:00</time>      
    </p>
</header>

        <div class="entry-content"><h4>setfacl</h4>
<ol>
<li><code>getfacl -R / &gt;systemP.bak</code>  将这个系统中的 / ，以及 / 底下所有的文件及目录权限导出到一个文件中</li>
<li>将systemP.bak文件想办法拷贝到被破坏的机 …</li></ol></div>
            <footer>
                <a rel="full-article" href="/posts/2014/06/11/chmod777.html">Read On &crarr;</a>
            </footer>
  		</article>
  		<article>
<header>
      <h1 class="entry-title">
        <a href="/posts/2014/03/23/zero-length-array.html">C语言零长数组</a>
      </h1>
    <p class="meta">
<time datetime="2014-03-23T18:28:00+08:00" pubdate>2014-03-23 18:28:00</time>      
    </p>
</header>

        <div class="entry-content"><p>前言：计算机语言是编译器和程序员交流的依据和规范，GNU C是GCC特有的功能，在Linux内核中被广泛应用。</p>
<p>帮助文档：http://gcc.gnu.org …</p></div>
            <footer>
                <a rel="full-article" href="/posts/2014/03/23/zero-length-array.html">Read On &crarr;</a>
            </footer>
  		</article>
  		<article>
<header>
      <h1 class="entry-title">
        <a href="/posts/2014/03/13/vim-usage.html">vim使用</a>
      </h1>
    <p class="meta">
<time datetime="2014-03-13T00:00:00+08:00" pubdate>2014-03-13 00:00:00</time>      
    </p>
</header>

        <div class="entry-content"><p><img alt="vim" src="/posts/2014/03/13/vi-vim-cheat-sheet-sch1.gif"></p>
<p><a href="http://app.waibc.com/manual/vimcdoc/doc/help.html">vim帮助文档（中文）</a></p>
<h1>VIM使用</h1>
<h2>插入模式</h2>
<div class="highlight-custom"><pre><span></span><code>i     从当前光标处进入插入模式
I     进入插入模式，并置光标于行首
a     追加模式，置光标于 …</code></pre></div></div>
            <footer>
                <a rel="full-article" href="/posts/2014/03/13/vim-usage.html">Read On &crarr;</a>
            </footer>
  		</article>
  		<article>
<header>
      <h1 class="entry-title">
        <a href="/posts/2013/09/29/linux-command-mail.html">mail命令，收发邮件</a>
      </h1>
    <p class="meta">
<time datetime="2013-09-29T00:00:00+08:00" pubdate>2013-09-29 00:00:00</time>      
    </p>
</header>

        <div class="entry-content"><p>常用命令行邮件客户端有mail（mailx）和mutt</p>
<h3>发邮件</h3>
<div class="highlight-custom"><pre><span></span><code><span class="n">mail</span><span class="w"> </span><span class="o">-</span><span class="n">s</span><span class="w">  </span><span class="ss">&quot;主题&quot;</span><span class="w"> </span><span class="n">收件人</span>
<span class="o">-</span><span class="n">s</span><span class="w"> </span><span class="n">代表发邮件</span>
<span class="n">收件人可以用本机的用户名</span><span class="p">(</span><span class="n">如帐号</span><span class="w"> </span><span class="n">user1</span><span class="p">)</span><span class="n">或者一 …</span></code></pre></div></div>
            <footer>
                <a rel="full-article" href="/posts/2013/09/29/linux-command-mail.html">Read On &crarr;</a>
            </footer>
  		</article>
  		<article>
<header>
      <h1 class="entry-title">
        <a href="/posts/2013/09/27/linux-info.html">linux 查看info文档</a>
      </h1>
    <p class="meta">
<time datetime="2013-09-27T17:59:00+08:00" pubdate>2013-09-27 17:59:00</time>      
    </p>
</header>

        <div class="entry-content"><div class="highlight-custom"><pre><span></span><code>info &lt;command&gt;
info 比man 更详细
info 中 按tab 跳到下一个 连接 （有*的，可以连接到其他info）
按enter跳转
空格或者page down翻页

n按键跳到下一个小 …</code></pre></div></div>
            <footer>
                <a rel="full-article" href="/posts/2013/09/27/linux-info.html">Read On &crarr;</a>
            </footer>
  		</article>
  		<article>
<header>
      <h1 class="entry-title">
        <a href="/posts/2013/09/27/linux-command.html">命令参数</a>
      </h1>
    <p class="meta">
<time datetime="2013-09-27T00:00:00+08:00" pubdate>2013-09-27 00:00:00</time>      
    </p>
</header>

        <div class="entry-content"><div class="highlight-custom"><pre><span></span><code>less
 按v进入编辑模式 （实际上是调用了vi）
/text 查找text
n 查找下一个
空格或enter，下一页
b上一页
ctrl+d下半页
ctrl+u上半页
g回 …</code></pre></div></div>
            <footer>
                <a rel="full-article" href="/posts/2013/09/27/linux-command.html">Read On &crarr;</a>
            </footer>
  		</article>
  		<article>
<header>
      <h1 class="entry-title">
        <a href="/posts/2013/09/26/grub2.html">learn-grub2</a>
      </h1>
    <p class="meta">
<time datetime="2013-09-26T00:47:00+08:00" pubdate>2013-09-26 00:47:00</time>      
    </p>
</header>

        <div class="entry-content"><h2>设备的命名</h2>
<p>grub2同样以fd表示软盘，hd表示硬盘（包含IDE和SCSI硬盘）。设备是从0开始编号，分区则是从1开始，主分区从1-4，逻辑 …</p></div>
            <footer>
                <a rel="full-article" href="/posts/2013/09/26/grub2.html">Read On &crarr;</a>
            </footer>
  		</article>
  		<article>
<header>
      <h1 class="entry-title">
        <a href="/posts/2013/09/10/grub4dos-menu-lst.html">grub4dos-menu</a>
      </h1>
    <p class="meta">
<time datetime="2013-09-10T17:37:00+08:00" pubdate>2013-09-10 17:37:00</time>      
    </p>
</header>

        <div class="entry-content"><div class="highlight-custom"><pre><span></span><code><span class="n">color</span><span class="w"> </span><span class="n">black</span><span class="o">/</span><span class="n">cyan</span><span class="w"> </span><span class="n">yellow</span><span class="o">/</span><span class="n">cyan</span>
<span class="n">timeout</span><span class="w"> </span><span class="mi">10</span>
<span class="n">default</span><span class="w"> </span><span class="mi">0</span>

<span class="n">title</span><span class="w"> </span><span class="n">ubuntu</span>
<span class="n">find</span><span class="w"> </span><span class="o">--</span><span class="n">set</span><span class="o">-</span><span class="n">root</span><span class="w"> </span><span class="o">/</span><span class="n">ubuntu</span><span class="o">/</span><span class="n">vmlinuz</span>
<span class="n">kernel</span><span class="w"> </span><span class="o">/</span><span class="n">ubuntu</span><span class="o">/</span><span class="n">vmlinuz</span><span class="w"> </span><span class="n">boot</span><span class="o">=</span><span class="n">casper</span><span class="w"> </span><span class="n">iso</span><span class="o">-</span><span class="n">scan</span><span class="o">/</span><span class="n">filename</span><span class="o">=/</span><span class="n">ubuntu</span><span class="o">.</span><span class="n">iso</span><span class="w"> </span><span class="n">ro</span><span class="w"> </span><span class="n">quiet</span><span class="w"> </span><span class="n">splash</span><span class="w"> </span><span class="n">locale</span><span class="o">=</span><span class="n">zh_CN</span><span class="o">.</span><span class="n">UTF</span><span class="o">-</span><span class="mi">8</span>
<span class="n">initrd</span><span class="w"> </span><span class="o">/</span><span class="n">ubuntu</span><span class="o">/</span><span class="n">initrd</span><span class="o">.</span><span class="n">lz</span>

<span class="n">title</span><span class="w"> </span><span class="err">启动</span><span class="n">winpe迷你系统</span>
<span class="n">find</span><span class="w"> </span><span class="o">--</span><span class="n">set</span><span class="o">-</span><span class="n">root</span><span class="w"> </span><span class="o">/</span><span class="n">boot …</span></code></pre></div></div>
            <footer>
                <a rel="full-article" href="/posts/2013/09/10/grub4dos-menu-lst.html">Read On &crarr;</a>
            </footer>
  		</article>
  		<article>
<header>
      <h1 class="entry-title">
        <a href="/posts/2013/09/10/linux-books.html">linux书籍推荐</a>
      </h1>
    <p class="meta">
<time datetime="2013-09-10T00:00:00+08:00" pubdate>2013-09-10 00:00:00</time>      
    </p>
</header>

        <div class="entry-content"><h1>书籍推荐</h1>
<h2>在线学习</h2>
<h3>在线基础学习</h3>
<ul>
<li>《鸟哥的Linux私房菜 基础篇（第三版）》在线阅读（推荐）</li>
<li>《鸟哥的Linux私房菜 服务器篇（第三版）》在线阅 …</li></ul></div>
            <footer>
                <a rel="full-article" href="/posts/2013/09/10/linux-books.html">Read On &crarr;</a>
            </footer>
  		</article>
<div class="pagination">

    <a class="next" href="/index6.html">Newer &rarr;</a>
  <br />
</div></div>

<aside class="sidebar">
<section>
  <h1>Recent Posts</h1>
  <ul id="recent_posts">
    <li class="post">
        <a href="/posts/2023/08/22/bash-conversion.html">bash进制转换</a>
    </li>
    <li class="post">
        <a href="/posts/2023/08/16/remap-caps-ctrl.html">在Linux下交换Ctrl与大写锁定键</a>
    </li>
    <li class="post">
        <a href="/posts/2023/08/15/learn-java.html">java入门精粹</a>
    </li>
    <li class="post">
        <a href="/posts/2023/08/04/tcl-expect.html">Tcl 和 expect教程</a>
    </li>
    <li class="post">
        <a href="/posts/2023/08/01/armbian-config-software.html">armbian-config 支持自动安装的软件</a>
    </li>
  </ul>
</section><section>
  <h1>Categories</h1>
    <ul id="recent_posts">
      <li><a href="/category/android.html">android (2)</a></li>
      <li><a href="/category/blog.html">blog (1)</a></li>
      <li><a href="/category/bootloader.html">bootloader (2)</a></li>
      <li><a href="/category/container.html">container (1)</a></li>
      <li><a href="/category/database.html">database (1)</a></li>
      <li><a href="/category/editor.html">editor (4)</a></li>
      <li><a href="/category/filesystem.html">filesystem (1)</a></li>
      <li><a href="/category/firefox.html">firefox (1)</a></li>
      <li><a href="/category/git.html">git (4)</a></li>
      <li><a href="/category/golang.html">golang (1)</a></li>
      <li><a href="/category/gu-piao.html">股票 (1)</a></li>
      <li><a href="/category/ide.html">IDE (1)</a></li>
      <li><a href="/category/interview.html">interview (1)</a></li>
      <li><a href="/category/linux.html">linux (51)</a></li>
      <li><a href="/category/network.html">network (7)</a></li>
      <li><a href="/category/nltk.html">nltk (2)</a></li>
      <li><a href="/category/notes.html">notes (1)</a></li>
      <li><a href="/category/other.html">other (1)</a></li>
      <li><a href="/category/programming.html">programming (10)</a></li>
      <li><a href="/category/python.html">python (1)</a></li>
      <li><a href="/category/software.html">software (1)</a></li>
      <li><a href="/category/stock.html">stock (1)</a></li>
      <li><a href="/category/storage.html">storage (2)</a></li>
      <li><a href="/category/vm.html">vm (1)</a></li>
      <li><a href="/category/web.html">web (4)</a></li>
      <li><a href="/category/windows.html">windows (1)</a></li>
      <li><a href="/category/xwindow.html">xwindow (1)</a></li>
  </ul>
</section>
<section>
  <h1>Tags</h1>
    <a href="/tag/linux.html">linux</a>,    <a href="/tag/bash.html">bash</a>,    <a href="/tag/xwindow.html">Xwindow</a>,    <a href="/tag/programming-language.html">programming-language</a>,    <a href="/tag/java.html">java</a>,    <a href="/tag/programming.html">programming</a>,    <a href="/tag/software.html">software</a>,    <a href="/tag/storage.html">storage</a>,    <a href="/tag/debug.html">debug</a>,    <a href="/tag/c.html">C</a>,    <a href="/tag/git.html">git</a>,    <a href="/tag/patch.html">patch</a>,    <a href="/tag/text.html">text</a>,    <a href="/tag/selenium.html">selenium</a>,    <a href="/tag/web.html">web</a>,    <a href="/tag/docker.html">docker</a>,    <a href="/tag/flatpak.html">flatpak</a>,    <a href="/tag/interview.html">interview</a>,    <a href="/tag/qt.html">Qt</a>,    <a href="/tag/opensuse.html">openSUSE</a>,    <a href="/tag/filesystem.html">filesystem</a>,    <a href="/tag/ide.html">IDE</a>,    <a href="/tag/glang.html">glang</a>,    <a href="/tag/xdg.html">xdg</a>,    <a href="/tag/network.html">network</a>,    <a href="/tag/raspberry.html">raspberry</a>,    <a href="/tag/vm.html">vm</a>,    <a href="/tag/windows.html">windows</a>,    <a href="/tag/gdb.html">gdb</a>,    <a href="/tag/debian.html">debian</a>,    <a href="/tag/archlinux.html">archlinux</a>,    <a href="/tag/phicomm.html">phicomm</a>,    <a href="/tag/kernel.html">kernel</a>,    <a href="/tag/ext4.html">ext4</a>,    <a href="/tag/server.html">server</a>,    <a href="/tag/stock.html">stock</a>,    <a href="/tag/shu.html">书</a>,    <a href="/tag/gu-piao.html">股票</a>,    <a href="/tag/python.html">python</a>,    <a href="/tag/nltk.html">nltk</a>,    <a href="/tag/command.html">command</a>,    <a href="/tag/shell.html">shell</a>,    <a href="/tag/terminal.html">terminal</a>,    <a href="/tag/other.html">other</a>,    <a href="/tag/wireless.html">wireless</a>,    <a href="/tag/android.html">android</a>,    <a href="/tag/gtk.html">gtk+</a>,    <a href="/tag/gnome.html">gnome</a>,    <a href="/tag/keyboard.html">keyboard</a>,    <a href="/tag/firefox.html">firefox</a>,    <a href="/tag/arch.html">arch</a>,    <a href="/tag/database.html">database</a>,    <a href="/tag/mysql.html">mysql</a>,    <a href="/tag/notes.html">notes</a>,    <a href="/tag/sysctl.html">sysctl</a>,    <a href="/tag/vim.html">vim</a>,    <a href="/tag/editor.html">editor</a>,    <a href="/tag/pelican.html">pelican</a>,    <a href="/tag/blog.html">blog</a>,    <a href="/tag/book.html">book</a>,    <a href="/tag/bootloader.html">bootloader</a></section>
    <section>
        <h1>Social</h1>
        <ul>
            <li><a href="https://github.com/zhangjiaxing" target="_blank">github</a></li>
            <li><a href="http://wpa.qq.com/msgrd?v=3&uin=347820393&site=qq&menu=yes" target="_blank">qq</a></li>
            <li><a href="http://www.writebug.cn" target="_blank">blog</a></li>
            <li><a href="http://gallery.writebug.cn" target="_blank">gallery</a></li>
        </ul>
    </section>
    <section>
        <h1>Blogroll</h1>
        <ul>
            <li><a href="http://getpelican.com/" target="_blank">Pelican</a></li>
        </ul>
    </section>

</aside>
    </div>
  </div>
  <footer role="contentinfo">
<p>
    Copyright &copy;  2013&ndash;2023  zhiliao &mdash;
  <span class="credit">Powered by <a href="http://getpelican.com">Pelican</a></span>
</p>  </footer>
</body>
</html>